const {
	resolve,
	isMp
} = require('./shared')
const cssMacro = require('weapp-tailwindcss/css-macro')
/** @type {import('tailwindcss').Config} */
module.exports = {
	content: ["./index.html", "pages/**/*.{vue,ts,js,wxml}"].map(resolve),
	theme: {
		extend: {
			colors: {
				primary: '#8C4F3D',
				second: "#C39A71",
				third: "#FFF1E9",
				background: "#F7F7F7",
				black: "#333",
				gray: "#858585",
			}
		}
	},
	plugins: [
		// https://weapp-tw.icebreaker.top/docs/quick-start/uni-app-css-macro
		cssMacro({
			variantsMap: {
				wx: 'MP-WEIXIN',
				'-wx': {
					value: 'MP-WEIXIN',
					negative: true
				}
			}
		})
	],
	corePlugins: {
		preflight: !isMp,
	},
};